package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    // 查询用户
    //@Select("select * from user")
    public List<User> findUserAll();//这是警告，不是报错，多个模块存在User

    //增加用户
    public int addUser(User user);

    //删除用户
    public int deleteUserById(Integer id);

    //修改用户
    public int updateUser(User user);
}
